<?php 
//Make the connection to the database
$conn = mysql_connect("localhost", "tvdam", "ncvQeMC8");
if (!$conn)
{
  // the connection failed so quit the script
  die("Could not connect !");
}
//Select which database you want to use.
$db = mysql_select_db("tvdam_db");
if (!$db)
{
  // cannot connect to the database so quit the script
  die("Could not connect to database!");
}

mysql_query('SET NAMES = "UTF-8"');
?>